<div class="admin-main">

    <blockquote class="layui-elem-quote">
        <a href="javascript:;" class="layui-btn layui-btn-small" th:onclick="add_subjects([[${id}]])">
            <i class="layui-icon">&#xe608;</i> 添加题目
        </a>
    </blockquote>
    <fieldset class="layui-elem-field">
        <legend th:text="${data.question_bank_name}">数据列表</legend>
        <div class="layui-field-box">
            <table class="site-table table-hover">
                <thead>
                <tr>
                    <th style="width: 10px;"><input type="checkbox" id="selected-all"></th>
                    <th style="text-align: left;width:50px;">类型</th>
                    <th style="text-align: left;">题目标题</th>
                    <th style="text-align: left;">答案选项</th>
                    <th>正确答案</th>
                    <th style="width: 50px;">分数</th>
                    <th style="width: 150px;">创建时间</th>
                    <th style="width: 100px;">操作</th>
                </tr>
                </thead>
                <tbody id="subjects_data_list">
                <tr th:each="ls,cpStat : ${list}">
                    <td><input type="checkbox"></td>
                    <td th:text="${ls.question_type}"></td>
                    <td style="text-align: left;" th:text="${ls.question_title}"></td>
                    <td style="text-align: left;" th:text="${ls.question_choice}"></td>
                    <td style="text-align: left;" th:text="${ls.right_key}"></td>
                    <td th:text="${ls.fraction}"></td>
                    <td th:text="${ls.create_time}"></td>
                    <td>
                        <a href="javascript:;" th:onclick="edit_subjects([[${ls.id}]])"
                           class="layui-btn layui-btn-mini">编辑</a>
                        <a href="javascript:;" th:onclick="del_subjects([[${ls.id}]],[[${ls.question_bank_id}]])"
                           data-id="1" data-opt="del" class="layui-btn layui-btn-danger layui-btn-mini">删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </fieldset>
</div>